<%@page language="java" contentType="text/html; charset=utf-8"%>
<%@include file="/tagDeclare.jsp"%>
<%@include file="/headDeclare.jsp"%>
<html>
<head>
<script type="text/javascript" src="<%=basePath%>js/ztree/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript" src="<%=basePath%>js/ztree/jquery.ztree.all-3.5.js"></script>
<link rel="stylesheet" href="<%=basePath%>css/ztree/zTree.css" type="text/css">
<link rel="stylesheet" href="<%=basePath%>css/ztree/zTreeStyle/zTreeStyle.css" type="text/css">

<SCRIPT type="text/javascript">
	var setting = {
			view: {
				dblClickExpand: dblClickExpand
			},
		data : {
			simpleData : {
				enable : true
			}
		}
	};
	
	function dblClickExpand(treeId, treeNode) {
		return treeNode.level > 0;
	}

	$(document).ready(function() {
		var zNodes = ${list};
		$.fn.zTree.init($("#treeDemo"), setting, zNodes);
	});
</SCRIPT>

</head>

<body style="min-width: 0px;background-color: #fff;">
	<div >
		<ul id="treeDemo" class="ztree" style="width:210px;border:1px solid #ccc;background-color: rgb(250, 250, 250);" ></ul>
	</div>
</body>
</html>

